package com.foreknow.elmboot.mapper;

import com.foreknow.elmboot.po.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    /**
     * 查询订单详情
     * @param orderId
     * @return
     * @throws Exception
     */
    public List<OrderDetail> orderDetailList(Integer orderId);

    /**
     * 批量添加订单详情
     * @param list
     * @return
     * @throws Exception
     */
    public int creatOrderDetail(List<OrderDetail> list);
}
